	<div>
	    <div id="comment" class="comment-back">
	    	  
	        <div class="box-comment-tt">
	            <h2>
	                <a id="send-comment">对{{restaurant_v.name}}发表评论</a>
	                <a id="comment-sum">总共有{{ comment_count }}条评论</a>
	            </h2>
	        </div>
	        
	        <div id="box-comment">
	            <div class="box-comment-contain">
	            	  <form  method="GET" action="/restaurant/{{restaurant_v.id}}/" name="comment_form" onsubmit="return checkComment('comment-area-id');">
	            	      <textarea class="comment-textarea" name="user-comment-content" id="comment-area-id" onkeydown="submitComment(event);" 
	            	      onfocus="if(value=='欢迎对该餐馆评论！'){value=''}" onblur="if(value=='') {value='欢迎对该餐馆评论！'}">欢迎对该餐馆评论！</textarea>
	            	      {% if user.is_authenticated %}
	            	          <div class="comment-bar">
	            	              <input type="hidden" value="{{ user.id }}" name="user-id">
	            	              <input type="submit" id="submit" class="comment-submit-btn" value="提交评论(Ctrl+Enter)">
	            	          </div>
	            	      {% else %}
	            	          <div class="comment-bar">
	            	              
	            	      	      <input type="button" class="comment-reg-log-btn" value="注册" onclick="window.location.href='/register/'">
	            	      	      <input type="button" class="comment-reg-log-btn" value="登陆" onclick="window.location.href='/login/'">
	            	      	      <p id="comment-tip">请先登录，如果还没账号就注册一个吧！</p>
	            	          </div>
	            	      {% endif %}
	            	  </form>
	            </div>
	        </div>
	        
	        <div class="comment-list">
	            <div class="comment-list-top">
	                <h3>{{ restaurant_v.name }}的评论</h3>
	                <input type="button" class="comment-display" id="display-hidden-comment-btn" value="显示评论"
	                        onclick="displayAndHideComment();">
	            </div>
	            
	            <div class="comment-content-list">
	                <ul class="comment-content" id="comment-ul" style="display:none">
	                    {% if comments %}
	                    {% for comment in comments %}
	                    <li>
	                    	  <div>
	                    	  	  {{ comment.datestamp|date:"Y-m-d，H：i" }}，来自：{{ comment.customer.name }}
	                    	  </div>
	                    	  
	                    	  <div>
	                    	      <p>
	                    	  	      <strong><span> {{ comment.comment_content }}</span></strong>
	                    	  	      {% ifnotequal comment.replied_comment_id -1 %}
	                    	  	      		<span>//#</span>
	                    	  	      			{% for comment_s in comments %}
	                    	  	      				{% ifequal comment_s.id comment.replied_comment_id %}
	                    	  	      					<span class='replied-username'>{{comment.customer.name}}</span> 
	                    	  	      					<span>:{{comment_s.comment_content}}</span>
	                    	  	      				{% endifequal %}
	                    	  	      			{% endfor %}
	                    	  	      {% endifnotequal %}
	                    	  	  </p>
	                    	  	  <br>
	                    	  </div>
	                    	  
	                    	  <div class="comment-reply">
	                    	      <button onclick="displayReply({{ comment.id }});">回复</button> 	  
	                    	  </div>
	
	                    	  <div id='reply_div_{{ comment.id }}'  style="display:none" class="box-comment-contain">
	                    	      <form name="comment-reply-form" action="/restaurant/{{restaurant_v.id}}/" method="GET" onsubmit="return checkComment('reply-comment-textarea-id');">
	                    	          <textarea class="comment-textarea"  name="user-comment-reply-content" id='reply-comment-textarea-id'
	                    	            onkeydown="submitComment(event);">//#{{ comment.customer.name }}{{comment.comment_content}}</textarea>
				                	      {% if user.is_authenticated %}
				                	          <div class="comment-bar">
				                	              <input type="hidden" value="{{ user.id }}" name="user-id">
				                	              <input type="hidden" value="{{ comment.id }}" name="replied-comment-id">
				                	              <input type="submit" id="submit" class="comment-submit-btn" value="回复(Ctrl+Enter)">
				                	              <p class="cancle-comment" onclick="cancelReplyComment({{ comment.id }});">取消</p>
				                	          </div>
				                	      {% else %}
				                	          <div class="comment-bar">
				                	              <input type="hidden" value="{{ comment.id }}" name="comment-id">
				                	      	      <input type="button" class="comment-reg-log-btn" value="注册" onclick="window.location.href='/register/'">
				                	      	      <input type="button" class="comment-reg-log-btn" value="登陆" onclick="window.location.href='/login/'">
				                	      	      <p id="comment-tip">请先登录，如果还没账号就注册一个吧！</p>
				                	          </div>
				                	      {% endif %}
	                    	      </form>
	                    	  </div>
	                    </li>
	                    {% endfor %}
	                    {% endif %}
	                </ul>
	                
	                <div class="comment-page">
	                    	<a class="comment-page-up">
	                    		上一页
	                      </a>
	                      <strong>
	                      	  1
	                      </srong>
	                          /
	                      <span>
	                      	  3
	                      </span>
	                      <a>
	                      	 下一页 
	                      </a>	
	                </div>
	            </div>
	        </div>
	      
	    </div> 
	</div>